package com.baibei.product;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;

import com.alibaba.android.arouter.facade.annotation.Route;
import com.baibei.basic.IPresenter;
import com.baibei.module.AppRouter;
import com.baibei.module.BasicActivity;
import com.baibei.module.stock.simple.SimpleStockFragment;

import butterknife.OnClick;

/**
 * k  先全屏显示
 * Created by ChenZhenGuang on 2018/8/15/023
 *
 * @email chenzhenguang@landsone.com
 */
@Route(path = AppRouter.ROUTER_STOCK_KLINE)
public class KLineActivity extends BasicActivity {

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_kline);
        String productInfo = getIntent().getStringExtra("productInfo");

        getSupportFragmentManager().beginTransaction()
                .replace(R.id.fra_order, SimpleStockFragment.newInstance(productInfo), "stock").commit();
    }

    /**
     * 关闭
     */
    @OnClick(R2.id.img_finish)
    public void onFullScreenClick() {
        finish();
    }


    @Override
    public IPresenter getBasicPresenter() {
        return null;
    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
    }
}
